<?php
/**
 * 责任链模式  （大部分）已经被观察者模式替换
 */
$customer = new \BigVideo\Other\COR\Customer();
$customer->setPriceHandler(\BigVideo\Other\COR\HandlerFactory::createPriceHandler());
for ($i=1;$i<50;$i++){
    $discount = rand(1,100);
    $customer->requestDiscount($discount/100);
}